# Contributor: Saijin-Naib <Saijin-Naib_package-maintenance@outlook.com>
# Maintainer: Saijin-Naib <Saijin-Naib_package-maintenance@outlook.com>
pkgname=xfce4-fsguard-plugin
pkgver=1.1.3
pkgrel=0
pkgdesc="Checks the free space of a given mountpoint"
url="https://docs.xfce.org/panel-plugins/xfce4-fsguard-plugin/start"
arch="all"
license="BSD-2-Clause"
makedepends="
	gtk+3.0-dev
	libxfce4ui-dev
	xfce4-dev-tools
	xfce4-panel-dev
	"
subpackages="xfce4-fsguard-plugin-lang"
source="xfce4-fsguard-plugin-$pkgver.tar.gz::https://gitlab.xfce.org/panel-plugins/xfce4-fsguard-plugin/-/archive/xfce4-fsguard-plugin-$pkgver/xfce4-fsguard-plugin-xfce4-fsguard-plugin-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgname-$pkgver/"

prepare() {
	default_prepare
	./autogen.sh
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
e6786869b16fa22a65cea8b559a67c02845c5016ea2372f493d0d61d7cc4b85cdec6649bc93104549a7b24898359f6bbeb35356eae5b2afecc314e985e8c2e7a  xfce4-fsguard-plugin-1.1.3.tar.gz
"

